package indi.onem.four.inter_ext;

import com.sun.org.apache.xml.internal.security.encryption.EncryptedKey;

import sun.applet.Main;

interface OperateCar {
	// ...
	default public int startEngine(EncryptedKey key) {
		return 100;
		// Implementation
	}
}
interface FlyCar {
	// ...
	default public int startEngine(EncryptedKey key) {
		return 101;
		// Implementation
	}
}
public class FlyingCar implements OperateCar, FlyCar {
	// ...
	public int startEngine(EncryptedKey key) {
		int  flycar =FlyCar.super.startEngine(key);
		int  operatcar=OperateCar.super.startEngine(key);
		System.out.println(flycar);
		System.out.println(operatcar);
		return 0;
	}
	
	public static void main(String[] args) {
		 FlyingCar flyingCar = new FlyingCar();
		 flyingCar.startEngine(null);
	}
}